package org.pork.domain;


import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

public class EmployeesVO {
	
	@NotEmpty(message="사원번호를 입력하세요")
	private String epid;
	
	@NotEmpty(message="비밀번호를 입력하세요")
	private String pw;
	
	private String picture;
	
	@NotEmpty(message="이름을 입력하세요")
	private String name;
	
	@NotEmpty(message="주민번호를 입력하세요")
	@Length(min=14,max=14,message="주민번호길이가 맞지않습니다.(-)포함해야됨")
	private String jumin;
	
	@NotEmpty(message="이메일를 입력하세요")
	@Length(min=8,max=100,message="이메일 길이가 너무 짧습니다.")
	@Email(message="이메일 형식이 아닙니다.")
	private String email;
	
	@NotEmpty(message="부서코드를 입력하세요")
	private String departCode;
	
	private String homeNum;
	
	@NotEmpty(message="휴대폰 번호를 입력하세요")
	@Length(min=12,max=13,message="휴대폰은 -를 포함 12이상이여야 합니다.")
	private String mobileNum;
	
	@NotEmpty(message="사무실 전화번호를 입력하세요")
	@Length(min=8,message="전화번호가 너무 짧습니다.")
	private String officeNum;
	
	@NotEmpty(message="주소를 입력하세요")
	private String addr1;
	
	@NotEmpty(message="상세주소를 입력하세요")
	private String addr2;
	
	@NotEmpty(message="우편주소를 입력하세요")
	private String zipCode;
	
	@NotEmpty(message="입사일을 입력하세요")
	private String startJob;
	
	@NotEmpty(message="직급을 입력하세요")
	private Integer gradeLev;

	public String getEpid() {
		return epid;
	}

	public void setEpid(String epid) {
		this.epid = epid;
	}

	public String getPw() {
		return pw;
	}

	public void setPw(String pw) {
		this.pw = pw;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getJumin() {
		return jumin;
	}

	public void setJumin(String jumin) {
		this.jumin = jumin;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDepartCode() {
		return departCode;
	}

	public void setDepartCode(String departCode) {
		this.departCode = departCode;
	}

	public String getHomeNum() {
		return homeNum;
	}

	public void setHomeNum(String homeNum) {
		this.homeNum = homeNum;
	}

	public String getMobileNum() {
		return mobileNum;
	}

	public void setMobileNum(String mobileNum) {
		this.mobileNum = mobileNum;
	}

	public String getOfficeNum() {
		return officeNum;
	}

	public void setOfficeNum(String officeNum) {
		this.officeNum = officeNum;
	}

	public String getAddr1() {
		return addr1;
	}

	public void setAddr1(String addr1) {
		this.addr1 = addr1;
	}

	public String getAddr2() {
		return addr2;
	}

	public void setAddr2(String addr2) {
		this.addr2 = addr2;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getStartJob() {
		return startJob;
	}

	public void setStartJob(String startJob) {
		this.startJob = startJob;
	}

	public Integer getGradeLev() {
		return gradeLev;
	}

	public void setGradeLev(Integer gradeLev) {
		this.gradeLev = gradeLev;
	}

	@Override
	public String toString() {
		return "MemberVO [epid=" + epid + ", pw=" + pw + ", picture=" + picture
				+ ", name=" + name + ", jumin=" + jumin + ", email=" + email
				+ ", departCode=" + departCode + ", homeNum=" + homeNum
				+ ", mobileNum=" + mobileNum + ", officeNum=" + officeNum
				+ ", addr1=" + addr1 + ", addr2=" + addr2 + ", zipCode="
				+ zipCode + ", startJob=" + startJob + ", gradeLev=" + gradeLev
				+ "]";
	}

	
}
